<div class="FilterBlock">

    <h1 style="padding-top: 0pt;"><?php echo $this->trans->_('short_stories'); ?>
        <a onclick="page.createPage(); return false;" style="padding: 1px 8px 1px !important" href="#" class="btn btn-small btn-inverse"><?php echo $this->trans->_('create_new_item') ?></a>
    </h1>


    <div class="filter-box" style="position: relative">
        <?php echo GetSnippets::deCodeUrl($this->back); ?>
        <a href="javascript://" class="filter-lnk"><span><?php echo $this->trans->_('filteroption'); ?></span></a>
        <div class="filter-container">
            <form onsubmit="return sendQuery(this);" action="/admin/short-stories/index/" name="DataForm" id="filterForm">
                <div class="params">
                    <table class="form-table" style="width:100%">
                        <tr>
                            <td>
                                <label><?php echo $this->trans->_('title'); ?>:</label>
                                <input class="inp-txt send-val" type="text" name="title_cat" value="<?php echo $this->escape($this->title) ?>" />
                                &nbsp;&nbsp;
                                <label><?php echo $this->trans->_('type'); ?>:</label>
                                <?php echo GetSnippets::getShortStoriesSelect('', '', 'type_filter', TRUE ) ?>
                            </td>
                        </tr>

                    </table>
                </div>
                <div class="btn-box">
                    <input type="submit" id="submit" class="btn" value="Submit" name="submit">
                    <a class="filter-close<?php echo ($this->cssClass) ? ' ' . ($this->cssClass . '-filter-close') : "" ?>" href="javascript://">Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>
<div id="ckeditorBlock" style="display: none;">
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <?php include (APPLICATION_PATH . '/modules/admin/views/scripts/snippets/lego.phtml'); ?>
        <div style="width: 650px; text-align: right;">
            <input onclick="page.saveShortStories()" type="button" value="<?php echo $this->trans->_('save') ?>" class="btn">
            <input onclick="$('#ckeditorBlock').hide('slow'); return false;" type="button" value="<?php echo $this->trans->_('cancel') ?>" class="btn">
    </div>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        if( !CKEDITOR.instances.ckeditor ) {
            CKEDITOR.replace( 'ckeditor' );
        }
    });
</script>


